<template>
  <!-- 个人中心模块 -->
  <view class="new-users copy-data" :style="{height:pageHeight}">
   
	6666
   
  </view>
</template>
<script>
  let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  import {
    storeCardApi
  } from '@/api/store.js';
	import {
	  newcomerGift
	} from '@/api/new_store.js';
	import {
		newcomerList
	} from '@/api/api.js';
  import {
    getMenuList,
    getUserInfo,
    setVisit,
    updateUserInfo,
    getRandCode,
    updateWechatInfo
  } from '@/api/user.js';
  import {
    wechatAuthV2,
    silenceAuth
  } from '@/api/public.js'
  import {
    toLogin
  } from '@/libs/login.js';
  import {
    mapState,
    mapGetters
  } from "vuex";
  // #ifdef H5
  import Auth from '@/libs/wechat';
  // #endif
  import {
    HTTP_REQUEST_URL
  } from '@/config/app';
  const app = getApp();
	import ewcomerPop from '@/components/ewcomerPop/index.vue'
  import pageFooter from '@/components/pageFooter/index.vue'
  import dayjs from '@/plugin/dayjs/dayjs.min.js';
  import Routine from '@/libs/routine';
  import colors from '@/mixins/color';
  // #ifdef MP
  import editUserModal from '@/components/eidtUserModal/index.vue';
  // #endif
  export default {
    components: {
      pageFooter,
			ewcomerPop,
			// #ifdef MP
			editUserModal
			// #endif
    },
    computed: {
      ...mapGetters({
        cartNum: 'cartNum',
        isLogin: 'isLogin'
      })
    },
    filters: {
      coundTime(val) {
        var setTime = val * 1000
        var nowTime = new Date()
        var rest = setTime - nowTime.getTime()
        var day = parseInt(rest / (60 * 60 * 24 * 1000))
        // var hour = parseInt(rest/(60*60*1000)%24) //小时
        return day + '天'
      },
      dateFormat: function(value) {
        return dayjs(value * 1000).format('YYYY-MM-DD');
      }
    },
    mixins: [colors],
    data() {
      return {
        vipStatus: 0,
        stu: false,
        storeMenu: [], // 商家管理
        orderMenu: [{
            img: 'icon-daifukuan',
            title: '待付款',
            url: '/pages/goods/order_list/index?status=0'
          },
          {
            img: 'icon-daifahuo',
            title: '待发货',
            url: '/pages/goods/order_list/index?status=1'
          },
          {
            img: 'icon-daishouhuo',
            title: '待收货',
            url: '/pages/goods/order_list/index?status=2'
          },
          {
            img: 'icon-daipingjia',
            title: '待评价',
            url: '/pages/goods/order_list/index?status=3'
          },
          {
            img: 'icon-a-shouhoutuikuan',
            title: '售后/退款',
            url: '/pages/users/user_return_list/index'
          },
        ],
        imgUrls: [],
        autoplay: true,
        circular: true,
        interval: 3000,
        duration: 500,
        isAuto: false, //没有授权的不会自动授权
        isShowAuth: false, //是否隐藏授权
        orderStatusNum: {},
        userInfo: {},
        MyMenus: [],
        sysHeight: sysHeight,
        mpHeight: 0,
        showStatus: 1,
        // #ifdef H5 || MP
        pageHeight: '100%',
        routineContact: 0,
        // #endif
        // #ifdef APP-PLUS
        pageHeight: app.globalData.windowHeight,
        // #endif
        // #ifdef H5
        isWeixin: Auth.isWeixin(),
        //#endif
        footerSee: false,
        member_style: 1,
        my_banner_status: 1,
        menu_status: 1,
        service_status: 1,
				newcomer_status:1,
        codeList: [{
          name: '会员码'
        }, {
          name: '付款码'
        }],
        codeIndex: 0,
        config: {
          bar: {
            code: '',
            color: ['#000'],
            bgColor: '#FFFFFF', // 背景色
            width: 480, // 宽度
            height: 110 // 高度
          },
          qrc: {
            code: '',
            size: 380, // 二维码大小
            level: 3, //等级 0～4
            bgColor: '#FFFFFF', //二维码背景色 默认白色
            border: {
              color: ['#eee', '#eee'], //边框颜色支持渐变色
              lineWidth: 3, //边框宽度
            },
            // img: '/static/logo.png', //图片
            // iconSize: 40, //二维码图标的大小
            color: ['#333', '#333'], //边框颜色支持渐变色
          }
        },
        isCode: false,
        isextension: false,
        extension: {
          code: "",
          size: 380, // 二维码大小
          level: 3, //等级 0～4
          bgColor: '#FFFFFF', //二维码背景色 默认白色
          border: {
            color: ['#eee', '#eee'], //边框颜色支持渐变色
            lineWidth: 3, //边框宽度
          },
          // img: '/static/logo.png', //图片
          // iconSize: 40, //二维码图标的大小
          color: ['#333', '#333'], //边框颜色支持渐变色
        },
        imgHost: HTTP_REQUEST_URL,
        copyRightText: "",
        copyRightImg: '',
				giftPic:'',
				vip_type:1,
				newcomer_style:1,
				newList:[],
				newBg:'',
				comerGift:{},
				isComerGift:false,
				memberStatus:0,
				editModal: false, // 编辑头像信息
      }
    },
    created() {
		
    },
    async onLoad(option) {
	
    },

    onShow: function() {
     
		this.downdloadFile();
      
	 
    },
    methods: {
		
		downdloadFile(){
			
			var path = 'http://7niu.zhuanghuji.com/attach/2023/06/cae8f202306021015069168.jpg';
			
		
			
			uni.downloadFile({
				url: path,
					success: res => {
						if (res.statusCode === 200) {
				
							console.log('下载成功');
						}
						let that = this;
						uni.saveFile({
							tempFilePath: '234',
							success: function(red) {
							
							}
						});
					}
				})	
					
		
		
			
		}
		
		
      
    }


}
</script>

<style lang="scss">




</style>
